#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QThread>
#include <QSerialPort>
#include <QDebug>

//接受数据的线程

class MyThread:public QThread

{

    Q_OBJECT

public:

    MyThread(QSerialPort *mycom);

    void run();

private:

    QSerialPort *com;

signals:

    void comRecive();

};

#endif // MYTHREAD_H

